@extends('console.common.framework') 
@section('content')
<div class="row">
    <div class="col-lg-12">
        <h3 class="page-header">分类管理</h3>
    </div>
    <!-- /.col-lg-12 -->
</div>
<div class="row">
    <div class="col-lg-12">
        <div class="panel panel-default">
            <div class="panel-heading">
                分类添加
            </div>
            <!-- /.panel-heading -->
            <div class="panel-body">
                <div class="row">
                    <div class="col-lg-6">
                        <form role="form" id="category-form">
                            {{ csrf_field() }}
                            <div class="form-group">
                                    <label>所属项目</label>
                                    <select class="form-control" name="project_id">
                                        @foreach ($projects as $li)
                                            @if(request()->input('projectid') == $li['id'])
                                                <option value="{{$li['id']}}" selected>{{$li['title']}} | {{$li['vname']}}</option>
                                            @else
                                                <option value="{{$li['id']}}">{{$li['title']}} | {{$li['vname']}}</option>
                                            @endif
                                        @endforeach
                                    </select>
                            </div>
                            <div class="form-group">
                                <label>分类名称</label>
                                <input class="form-control" type="text" name="title" value="" placeholder="分类标题">
                            </div>
                            <div class="form-group">
                                <label>vname</label>
                                <input class="form-control" type="text" name="vname" value="" placeholder="分类唯一英文名称">
                            </div>
                            <div class="form-group">
                                <label style="margin-right:25px;">分类状态</label>
                                <label class="radio-inline">
                                            <input type="radio" name="status" value="1" checked>显示
                                        </label>
                                <label class="radio-inline">
                                            <input type="radio" name="status" value="0">隐藏
                                        </label>
                            </div>
                            <button type="button" class="btn btn-primary submit">提交</button>
                        </form>
                    </div>
                </div>
                <!-- /.table-responsive -->
            </div>
            <!-- /.panel-body -->
        </div>
        <!-- /.panel -->
    </div>
</div>
@endsection
@section('scripts')
<script src="{{ env('APP_STATIC') }}console/js/category.js"></script>
@endsection